package com.hellobike.haxing.modules.product.model;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hellobike.haxing.modules.product.mapper.typehandler.JSONObjectHandler;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.math.BigDecimal;

@Data
public class PromotionGroupNojoinSku {
    /**
     * sku id
     */
    @Excel(name = "sku id", width = 15)
    private Long skuId;
    /**
     * 拼团价
     */
    @Excel(name = "拼团价", width = 15)
    private BigDecimal groupPrice;
    /**
     * 活动库存初始量
     */
    @Excel(name = "活动库存初始量", width = 15)
    private Integer stockInit;
    /**
     * 活动库存剩余量
     */
    @Excel(name = "活动库存剩余量", width = 15)
    private Integer stockLeft;

    /**
     * 用户限购数
     */
    @Excel(name = "用户限购数", width = 15)
    private Integer userBuyLimit;

    /**
     * 69码
     */
    @Excel(name = "69码", width = 15)
    private String barcode;

    /**
     * 规格属性值
     */
    @Excel(name = "规格属性值", width = 15)
    @TableField(typeHandler = JSONObjectHandler.class)
    private JSONObject dimensionValues;

    /**
     * 成本价
     */
    @Excel(name = "成本价", width = 15)
    private BigDecimal cogsPrice;


    private BigDecimal price;
}
